package com.hls.modules.business.service;

import com.hls.modules.business.dao.MedicalRecordMapper;
import com.hls.modules.business.entity.MedicalRecord;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MedicalRecordService {
    @Resource
    private MedicalRecordMapper medicalRecordMapper;
    /**
     * 获取门诊病历列表
     * @return
     */
    public List<MedicalRecord> medicalRecordList(MedicalRecord medicalRecord) {
        if("1".equals(medicalRecord.getBlfl())) {
            return medicalRecordMapper.mzMedicalRecordList(medicalRecord);
        } else if("2".equals(medicalRecord.getBlfl())) {
            return medicalRecordMapper.zyMedicalRecordList(medicalRecord);
        } else {
            return null;
        }
    }
}